package com.hxzy.mapper.shengpi;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hxzy.entity.shengpi.ShengpiCategory;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * 审批分类
 * @author Administrator
 */
@Mapper
public interface ShengpiCategoryMapper extends BaseMapper<ShengpiCategory> {

    /**
     * 得到数据库中最大的值
     * @return
     */
    @Select(value = "select ifnull(max(id),'0') from shengpi_category")
    String selectMaxId();
}